Pay close attention to details such as indentations!
def practice(i):
while i < 6:
if i == 3:
break
i += 1
return i
| Function Call | Return Value | |||
|---|---|---|---|---|
| practice(10) | → | |||
| practice(3) | → | |||
| practice(-2) | → | |||
| practice(1) | → | |||
| practice(6) | → | |||
Experiment with this code on Gitpod.io